package com.example.springbootfxdemo.controller;

import de.felixroske.jfxsupport.FXMLController;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.input.MouseEvent;
import javafx.scene.text.Text;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * @author lidongwei
 * @create 2023-08-12-14:23
 */
@FXMLController
public class HelloController implements Initializable {

    @FXML
    private Text text;

    @FXML
    void onClicked(MouseEvent event) {
        text.setText("Hello World!");
    }

    @Override
    public void initialize(URL location, ResourceBundle resources) {
    }
}
